﻿//
//  Copyright (c) 2011 Extreme: Paweł Huryn (lead), Jakub Domański
//

using System.Xml.Serialization;

namespace Extreme.SPFramework.Configuration
{
    /// <summary>
    /// Property Mappings
    /// </summary>
    public class XmlPropertyMappingConfiguration
    {
        /// <summary>
        /// Entity property name
        /// </summary>
        [XmlAttribute]
        public string PropertyName { get; set; }

        /// <summary>
        /// Entity column name
        /// </summary>
        [XmlAttribute]
        public string ColumnName { get; set; }

        /// <summary>
        /// Read only mapping
        /// </summary>
        [XmlAttribute]
        public bool ReadOnly { get; set; }
    }
}
